//
//  IOOperation.h
//  PrivateCloud
//
//  Created by Visitor on 10/13/13.
//  Copyright (c) 2013 sarah doo. All rights reserved.
//

#import <Foundation/Foundation.h>
//#import "FileData.h"
#import "DDFileInfo.h"
@interface IOOperation : NSObject

- (BOOL)writeData:(NSData *)data andOffset:(long)off andUID:(int)uid;
- (BOOL)writeData:(NSData *)data andOffset:(long)off andPath:(NSString*)path;
- (NSData*)readDataByOffset:(long)off andLength:(int)len andUID:(int)uid;
- (long)getFileLength:(NSString *)fileName;
- (NSData*)readDataByOffset:(long)off andLength:(int)len andPath:(NSString*)path;
- (long)getVcardFileLength:(NSString *)fileName;
//- (BOOL)writeData:(FileData *)fileData;
//- (NSData *)readData:(FileData *)fileData;
@end
